import 'package:XinXiZiXun/common/utils/utils.dart';
import 'package:XinXiZiXun/common/values/values.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class BottomOutLayout extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: duSetHeight(80),
      width: ScreenUtil.screenWidth,
      margin: EdgeInsets.only(
          left: duSetWidth(ktDefaultPadding),
          right: duSetWidth(ktDefaultPadding)),
      decoration: BoxDecoration(
        color: AppColors.primaryBackgroundColor,
        borderRadius: BorderRadius.all(Radius.circular(kDefaultPadding)),
        // boxShadow: [
        //   BoxShadow(
        //     offset: Offset(0, 10),
        //     blurRadius: 30,
        //     color: AppColors.primaryBlackColor.withOpacity(.23),
        //   ),
        // ],
      ),
      child: FlatButton(
        onPressed: () {
          Navigator.of(context).pushNamed('/loginlayout');
//          Navigator.push(context,
//              MaterialPageRoute(builder: (context) => LoginLayoutPage()));
        },
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(kDefaultPadding)),
        ),
        child: Text(
          '退出登录',
          style: TextStyle(
            fontFamily: 'Avenir',
            fontSize: duSetScaleFontSize(28.0),
            fontWeight: FontWeight.w500,
            color: AppColors.primaryBlackColor,
          ),
        ),
      ),
    );
  }
}
